package com.ruoyi.system.api.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="ShOrderResp对象", description="订单信息出参")
public class ShOrderResp extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "支付订单号")
    private String orderNo;

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品ID")
    private String productIds;

    @ApiModelProperty(value = "商品宣传图")
    private List<String> productPics;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "订单折扣")
    private BigDecimal discount;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "购买数量")
    private Integer num;

    @ApiModelProperty(value = "订单地址ID")
    private Long addressId;

    @ApiModelProperty(value = "收货人")
    private String shName;

    @ApiModelProperty(value = "收货电话")
    private String shPhone;

    @ApiModelProperty(value = "订单地址")
    private String address;

    @ApiModelProperty(value = "订单状态")
    private Integer status;

    @ApiModelProperty(value = "订单人")
    private Long createBy;

    @ApiModelProperty(value = "订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
}
